package edu.nwpu.service;

import edu.nwpu.pojo.FoodCount;

import java.util.List;

@Deprecated
public interface FoodCountService {

    /**
     * 根据id获取某个菜品数量信息<food, num>
     * @param orderId
     * @param foodId
     * @return
     */
    FoodCount getFoodCountById(long orderId, Long foodId);

    /**
     * 根据订单号获取该订单的所有菜品数量信息
     * @param orderId
     * @return
     */
    List<FoodCount> getFoodCountsByOrderId(long orderId);

    /**
     * 更新菜品数量信息
     * @param foodCount
     * @return
     */
    int updateFoodCount(FoodCount foodCount);

    /**
     * 根据id删除某个菜品信息
     * @param orderId
     * @param FoodId
     * @return
     */
    int deleteFoodCountById(long orderId, long FoodId);

    /**
     * 根据订单id删除整个订单的菜品信息
     * @param orderId
     * @return
     */
    int deleteFoodCountsByOrderId(Long orderId);

}
